package cn.stronglink.asset.module.patrol.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.Patrol;
import cn.stronglink.asset.model.PatrolItems;

public interface PatrolMapper {
	
	
	public List<Patrol> queryList(Pagination page,@Param("params")Map<String, Object> params);//查询
	
	public void remove(@Param("id") Long id);//删除主表

	public void removeInspectionItems(@Param("inspectId") Long inspectId);//删除子表	
	
	public void updateInspection(Patrol inspection);//更新主表

	public int insertInspection(Patrol inspection);//新增主表

	public void insertInspectionItems(PatrolItems detail);//新增明细

	public List<PatrolItems> getItemsByInspectId(@Param("id") Long id);//通过巡检id获取巡检明细

	public Patrol qryById(@Param("id") Long id);

	public List<Patrol> qryPatrolList(Pagination page, @Param("params")Map<String, Object> params);
	
	List<HashMap> queryPatrolItemsList(Pagination page,@Param("params")Map<String,Object> params);

	public List<String> qryRackItemsById(@Param("id") Long id);
	

}
